import Mock from "mockjs";
Mock.mock("/api/list",{
    code:200,
    "list|5":[{
        "id":"@id",
        "name":"@cname",
        "info|10":[{
            "id":"@id",
            "title":"@ctitle(5,7)",  
            "img":"@image(100x100,@color)",
            "price|1-1000":1,
            "num|1-100":1
        }]
    }]
})

Mock.mock("/api/imgs",{
    code:200,
    "imgs|5":[{
        "id":"@id",
        "img":"@image(300x100,@color)",
    }]
})
Mock.mock("/api/info",{
    code:200,
    "info|5":[{
        "id":"@id",
        "title":"@ctitle(5,7)",  
        "img":"@image(100x100,@color)",
        "price|1-1000":1,
        "num|1-100":1
    }]
})